<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3秒抓眼球！10W+爆文的公众号命题技巧【建议收藏】</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
        body { background-color: #f9f6f2; padding: 25px 15px; }
        
        .text-control-btn {
            position: fixed;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 100;
        }
        .text-control-btn button {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: none;
            background-color: #ffb347;
            color: #332d21;
            font-size: 18px;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(255,179,71,0.4);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .text-control-btn button:hover {
            background-color: #ff8c00;
            color: #fff;
            transform: scale(1.05);
        }
        .text-control-btn button:active {
            transform: scale(0.95);
        }
        
        .letter-container {
            max-width: 780px;
            margin: 0 auto;
            background: #fff;
            padding: 40px 50px;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.06);
            background-image: linear-gradient(#f5f2ed 1px, transparent 1px);
            background-size: 100% 30px;
            background-position: 0 25px;
            line-height: 1.6;
        }
        
        .font-size-normal { font-size: 15px; }
        .article-title { font-size: 26px; }
        .article-intro { font-size: 16px; }
        .card-title { font-size: 20px; }
        .card-content h3 { font-size: 17px; }
        
        .article-title {
            color: #332d21;
            text-align: center;
            margin-bottom: 35px;
            padding-bottom: 12px;
            border-bottom: 2px solid #ffb347;
            position: relative;
        }
        
        .article-intro {
            color: #5d5548;
            margin-bottom: 40px;
            padding: 12px 18px;
            background: #fffbf5;
            border-left: 3px solid #ffb347;
            border-radius: 0 4px 4px 0;
        }
        .article-intro strong { color: #ff8c00; }
        
        .card-group { margin-bottom: 45px; }
        .card-title {
            color: #332d21;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .card-title::before {
            content: "";
            width: 8px;
            height: 22px;
            background: #ffb347;
            border-radius: 2px;
        }
        
        .card-content {
            background: #fffbf5;
            padding: 22px;
            border-radius: 8px;
            border: 1px solid #f9e9c8;
            color: #5d5548;
        }
        .card-content h3 {
            color: #ff8c00;
            margin: 22px 0 10px;
        }
        .card-content h3:first-child { margin-top: 0; }
        
        .formula {
            font-weight: 600;
            color: #e67e22;
            margin: 10px 0;
            padding: 6px 10px;
            background: #fff8e8;
            border-radius: 3px;
            display: inline-block;
        }
        
        .case-list, .habit-list {
            list-style: none;
            margin: 10px 0 0 8px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .case-list li {
            position: relative;
            padding-left: 16px;
        }
        .case-list li::before {
            content: "•";
            color: #ffb347;
            position: absolute;
            left: 0;
            top: 1px;
        }
        .habit-list { gap: 12px; }
        .habit-list li { position: relative; padding-left: 20px; }
        .habit-list li::before {
            content: attr(data-num);
            color: #e67e22;
            font-weight: 600;
            position: absolute;
            left: 0;
            top: 0;
        }
        .habit-list strong { color: #e67e22; }
        
        .pit-item {
            margin-bottom: 15px;
            padding: 12px;
            background: #fffdf8;
            border-radius: 5px;
            border-left: 3px dashed #ffb347;
        }
        .pit-item:last-child { margin-bottom: 0; }
        
        .example-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin: 20px 0;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(0,0,0,0.04);
        }
        .example-table th {
            background: #fff3e0;
            color: #e67e22;
            font-size: 15px;
            padding: 12px 14px;
            text-align: left;
            border-bottom: 1px solid #f9e9c8;
        }
        .example-table td {
            padding: 12px 14px;
            border-bottom: 1px solid #f9e9c8;
            background: #fff;
        }
        .example-table tr:last-child td { border-bottom: none; }
        .example-table tr:hover td { background: #fffbf5; transition: 0.2s; }
        
        .interactive {
            background: #fff3e0;
            padding: 15px 18px;
            border-radius: 6px;
            margin-top: 30px;
            color: #e67e22;
            font-size: 16px;
            border-left: 3px solid #ff8c00;
            text-align: center;
        }
        
        @media (max-width: 768px) {
            .text-control-btn {
                display: none;
            }
            .letter-container { 
                padding: 30px 20px; 
                background-size: 100% 28px; 
            }
            .article-title { font-size: 22px; margin-bottom: 30px; }
            .card-content { padding: 18px 15px; }
            .example-table th, .example-table td { padding: 10px 8px; font-size: 14px; }
        }
    </style>
    <script src="../js/html2canvas.min.js"></script>
</head>
<body>
    <div class="text-control-btn">
        <button id="font-enlarge" title="放大文字">+</button>
        <button id="font-reduce" title="缩小文字">-</button>
        <button id="export-image" title="导出长图">📷</button>
    </div>

    <div class="letter-container font-size-normal" id="content-container" contenteditable="true">
        <h1 class="article-title">3秒抓眼球！10W+爆文的公众号命题技巧【建议收藏】</h1>
        
        <p class="article-intro">读者决定是否点开文章，平均只用2.8秒。内容再好，标题没吸引力也会被划走。本文整理5大核心技巧、4类避坑指南，帮你写出“自带点击率”的标题。</p >
        
        <div class="card-group">
            <h2 class="card-title">一、5大核心命题技巧</h2>
            <div class="card-content">
                <h3>1. 痛点直击：戳中焦虑</h3>
                <p class="formula">公式：人群+具体痛点+解决方案暗示</p >
                <ul class="case-list">
                    <li>职场号：《30岁还在做执行岗，怎么突破“职场天花板”？》</li>
                    <li>母婴号：《宝宝半夜哭醒5次，新手妈妈这样做能睡整觉》</li>
                </ul>

                <h3>2. 悬念制造：勾起好奇</h3>
                <p class="formula">公式：反常结果+留白疑问/数字冲突</p >
                <ul class="case-list">
                    <li>情感号：《结婚7年，我删了老公微信，原因很扎心》</li>
                    <li>职场号：《同事请假3天，工资涨2000，我看了她电脑才懂》</li>
                </ul>

                <h3>3. 利益承诺：明确价值</h3>
                <p class="formula">公式：时间/成本+具体收益+结果量化</p >
                <ul class="case-list">
                    <li>学习号：《每天10分钟背单词，30天搞定考研核心词》</li>
                    <li>职场号：《4个Excel技巧，每天少加班2小时》</li>
                </ul>

                <h3>4. 反常识观点：打破认知</h3>
                <p class="formula">公式：常见认知+“不”/“反”+新观点</p >
                <ul class="case-list">
                    <li>情感号：《“夫妻分房睡”不是感情差，婚姻更长久》</li>
                    <li>健康号：《每天喝8杯水是错的？这3类人喝多伤肾》</li>
                </ul>

                <h3>5. 热点结合：借势不盲目</h3>
                <p class="formula">公式：热点+账号定位+观点/技巧</p >
                <ul class="case-list">
                    <li>职场号（《繁花》）：《看懂宝总做事逻辑，职场少走5年弯路》</li>
                    <li>美食号（淄博烧烤）：《学淄博烧烤秘诀，在家做也香》</li>
                </ul>
            </div>
        </div>
        
        <div class="card-group">
            <h2 class="card-title">二、4类标题避坑指南</h2>
            <div class="card-content">
                <div class="pit-item">
                    <h3>1. 别做“标题党”</h3>
                    <p>如“震惊！某明星被拍，真相想不到”，内容空洞会让读者取关。</p >
                </div>
                <div class="pit-item">
                    <h3>2. 别太晦涩</h3>
                    <p>科技号别写《区块链分布式存储解析》，改《“区块链”是什么？3个例子小白懂》。</p >
                </div>
                <div class="pit-item">
                    <h3>3. 别太宽泛</h3>
                    <p>“如何变优秀”太笼统，改《每天10分钟，30天提升表达能力》。</p >
                </div>
                <div class="pit-item">
                    <h3>4. 别负能量</h3>
                    <p>“职场太黑暗”劝退读者，改《职场有挑战，3个方法能突破》。</p >
                </div>
            </div>
        </div>
        
        <div class="card-group">
            <h2 class="card-title">三、10大行业爆款案例</h2>
            <div class="card-content">
                <table class="example-table">
                    <thead>
                        <tr><th>账号类型</th><th>爆款标题</th></tr>
                    </thead>
                    <tbody>
                        <tr><td>情感类</td><td>《“妈不让我嫁他”，3年后才懂苦心》</td></tr>
                        <tr><td>职场类</td><td>《被批“工作没重点”？2招下次不挨骂》</td></tr>
                        <tr><td>母婴类</td><td>《宝宝辅食别瞎加！6月-1岁添加顺序》</td></tr>
                        <tr><td>理财类</td><td>《新手别乱买基金！3个原则少亏50%》</td></tr>
                        <tr><td>美妆类</td><td>《黄黑皮别跟风！5支口红显白不挑皮》</td></tr>
                        <tr><td>家居类</td><td>《出租屋小？4个神器让空间翻倍》</td></tr>
                        <tr><td>健康类</td><td>《起床别叠被！1个习惯减少螨虫》</td></tr>
                        <tr><td>成长类</td><td>《30岁后懂了：“拒绝别人”才是负责》</td></tr>
                        <tr><td>美食类</td><td>《3分钟早餐！不用开火，上班族必学》</td></tr>
                        <tr><td>教育类</td><td>《孩子拖拉？“番茄工作法”1周见效》</td></tr>
                    </tbody>
                </table>
            </div>
        </div>
        
        <div class="card-group">
            <h2 class="card-title">四、3个实操好习惯</h2>
            <div class="card-content">
                <ul class="habit-list">
                    <li data-num="1."><strong>建标题库</strong>：按“痛点/悬念/利益”分类，方便参考</li>
                    <li data-num="2."><strong>多写备选</strong>：同一内容写5-10个标题，投票筛选</li>
                    <li data-num="3."><strong>加关键词</strong>：加入用户常搜词（如“新手妈妈”），提升曝光</li>
                </ul>
                <p style="margin-top: 15px;">标题核心是“懂读者”——知道他们关心什么，才能3秒抓住眼球。</p >
            </div>
        </div>

        <div class="interactive">
            互动：你写标题时遇到过什么难题？评论区说下账号类型，一起出主意！
        </div>
    </div>

    <script>
        const contentContainer = document.getElementById('content-container');
        const fontEnlargeBtn = document.getElementById('font-enlarge');
        const fontReduceBtn = document.getElementById('font-reduce');
        const exportImageBtn = document.getElementById('export-image');
        
        const fontSizes = {
            0: { base: 12, title: 20, intro: 13, cardTitle: 17, h3: 15 },
            1: { base: 13, title: 22, intro: 14, cardTitle: 18, h3: 16 },
            2: { base: 15, title: 26, intro: 16, cardTitle: 20, h3: 17 },
            3: { base: 17, title: 28, intro: 18, cardTitle: 22, h3: 19 },
            4: { base: 19, title: 30, intro: 20, cardTitle: 24, h3: 21 },
            5: { base: 21, title: 32, intro: 22, cardTitle: 26, h3: 23 }
        };
        
        let currentSizeLevel = 2;
        
        function updateAllFontSizes() {
            const sizes = fontSizes[currentSizeLevel];
            
            contentContainer.style.fontSize = `${sizes.base}px`;
            
            document.querySelector('.article-title').style.fontSize = `${sizes.title}px`;
            
            document.querySelector('.article-intro').style.fontSize = `${sizes.intro}px`;
            
            document.querySelectorAll('.card-title').forEach(el => {
                el.style.fontSize = `${sizes.cardTitle}px`;
            });
            
            document.querySelectorAll('.card-content h3').forEach(el => {
                el.style.fontSize = `${sizes.h3}px`;
            });
        }
        
        fontEnlargeBtn.onclick = function() {
            if (currentSizeLevel < 5) {
                currentSizeLevel++;
                updateAllFontSizes();
            }
        };
        
        fontReduceBtn.onclick = function() {
            if (currentSizeLevel > 0) {
                currentSizeLevel--;
                updateAllFontSizes();
            }
        };
        
        exportImageBtn.onclick = function() {
            html2canvas(contentContainer, {
                scale: 2,
                useCORS: true,
                logging: false
            }).then(canvas => {
                const link = document.createElement('a');
                link.download = '公众号命题技巧.png';
                link.href = canvas.toDataURL('image/png');
                link.click();
            });
        };
    </script>
</body>
</html>
    